package com.tianxiabuyi.weixin.qy.message.json;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.weixin.common.message.MpNews;
import com.tianxiabuyi.weixin.common.message.MsgType;

/**
 * mpnews消息
 */
public class MpNewsMessage extends JsonMessage {

    private int safe;
    @JSONField(name = "mpnews")
    private MpNews mpNews;

    public MpNewsMessage() {
        this.msgType = MsgType.mpnews;
    }

    public int isSafe() {
        return safe;
    }

    public void setSafe(int safe) {
        this.safe = safe;
    }

    public MpNews getMpNews() {
        return mpNews;
    }

    public void setMpNews(MpNews mpNews) {
        this.mpNews = mpNews;
    }

    public MpNewsMessage mpNews(MpNews mpNews) {
        this.mpNews = mpNews;
        return this;
    }

    public MpNewsMessage safe() {
        this.safe = 1;
        return this;
    }

}
